package org.cuatrovientos.erp.model;

import javax.validation.constraints.NotNull;

/**
 * @author Enrico Baroni
 * POJO class of <State>
 */
public class State {

	private int id;
	
	@NotNull(message="{state.name.error}")
	private String name;
	
	@NotNull(message="{state.country.error}")
	private String country;
		
	/**
	 * Nothing constructor.
	 */
	public State(){
		
	}
	/**
	 * Full constructor
	 * @param id
	 * @param name
	 * @param country
	 */
	public State(int id, String name, String country) {
		super();
		this.id = id;
		this.name = name;
		this.country = country;
		
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the description
	 */
	public String getCountry() {
		return country;
	}
	/**
	 * @param country the country to set
	 */
	public void setCountry(String country) {
		this.country = country;
	}
}
